package com.neogb.shareringtone;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;

public class Main extends TabActivity {

	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	    setContentView(R.layout.main);

	    TabHost mTabHost = getTabHost();
	    
		final Intent iAlarm = new Intent(getBaseContext(), ListSound.class);
		iAlarm.putExtra("type", "ALARM");
	    mTabHost.addTab(mTabHost.newTabSpec("tab_alarm").setIndicator(getString(R.string.tab_alarm)).setContent(iAlarm));
	    
	    final Intent iNotification = new Intent(getBaseContext(), ListSound.class);
	    iNotification.putExtra("type", "NOTIFICATION");
	    mTabHost.addTab(mTabHost.newTabSpec("tab_notification").setIndicator(getString(R.string.tab_notification)).setContent(iNotification));
	    
	    final Intent iRingtone = new Intent(getBaseContext(), ListSound.class);
	    iRingtone.putExtra("type", "RINGTONE");
	    mTabHost.addTab(mTabHost.newTabSpec("tab_ringtone").setIndicator(getString(R.string.tab_ringtone)).setContent(iRingtone));
	    
	    mTabHost.setCurrentTab(0);
	}
    
}